package com.dz.ejb.session;

import javax.ejb.Stateful;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceContextType;

import org.apache.log4j.Logger;

/**
 * Session Bean implementation class FacadeBean
 */
@Stateful
public class FacadeBean implements FacadeBeanInterface {
	/** Entity Manager. */
	@PersistenceContext(name = "monUnite", type = PersistenceContextType.EXTENDED)
	EntityManager em;

	public FacadeBean() {}

	public EntityManager getEm() {
		return em;
	}
	public void setEm(EntityManager em) {
		this.em = em;
	} 
}
